package io.github.enbool.enums;

public enum ResultEnum {
	
	SUCCESS(0, "成功"),
	//User
	USER_NOT_EXIST(11, "用户不存在"),
	USER_NO_ORGANIZATION(12, "用户没有分配Organization"),
	USER_NO_PHONE(13, "用户还没设置手机号"),
	
	
	
	;
	
	private int code;

    private String message;

	ResultEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	@Override
	public String toString() {
		return String.valueOf(this.code);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
